package edu.sctu.liangyuxiang.day20150505;

/**
 * Created by user18 on 2015/5/5.
 */
public class DogOne extends Abstract {

    public Interface anInterface;
    public DogOne(Interface anInterface){

        this.anInterface = anInterface;
    }


    @Override
    public void getColor() {
        color = "yellow";
    }

    @Override
    public void getSize() {
        size = 10;
    }

    @Override
    public void getAction() {
        action = "sleep";

    }

    public void getout(){
        anInterface.getInto(color,size,action);
    }
}
